<template>
  <div class="contents">
    <PanelTitle title="道地产区" />

    <div class="mt">
      <video id="myVideo" controls autoplay loop muted class="the-video">
        <source src="https://xt-cdn.eos.fujian-3.cmecloud.cn/zher-app/xuanchuan.mp4" type="video/mp4" />
      </video>
    </div>
  </div>
</template>

<script setup>
import { onActivated, onMounted, ref } from "vue";
import PanelTitle from "../../component/PanelTitle.vue";
import http from "@/api/http";
import { env } from "@/utils/env";


let weatherInfo = ref({})

onMounted(async () => {
  document.getElementById('myVideo').play()
});

onActivated(() => {
  document.getElementById('myVideo').play()
})
</script>

<style scoped lang="scss">
.contents {
  background: linear-gradient(to bottom,
      rgba(5, 79, 99),
      rgba(5, 79, 99, 0.1),
      rgba(5, 79, 99));
  border-radius: vh(8);
  border: vh(1) solid rgba(6, 112, 180, 1);

  .mt {
    // margin-top: vh(-40);
    padding: 0 vw(16);
  }
}

.onePanel {
  color: #fff;

  .imgLine {
    display: flex;
    align-items: center;

    .lefticon {
      width: vw(35);
      height: vw(35);
    }
  }

  .shineText {
    color: #fff;
    font-size: vh(20);
    text-shadow: 0 0 vh(10) #159aff;
    margin-left: vw(20);
  }
}

.firstPanel {
  background: rgba(9, 36, 44, 0.4);
  border-radius: vh(6);
  margin-top: vh(8);
  padding: vh(6) vw(12) vh(6);
  font-size: vh(13);
  line-height: vh(18);
  color: #fff;
}

.flexPanel {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;

  >div {
    width: 50%;
  }
}
.the-video{
  width: 100%;
  height: 100%;
}
</style>